package com.cash.app.net

import com.cash.app.BuildConfig

object NetConstant {
    // HTTP Headers
    const val H_CONTENT_TYPE = "Content-Type"
    const val HV_CONTENT_TYPE = "application/json;charset=utf-8"

    // HTTP Request Methods
    const val METHOD_POST = "POST"

    // Request Body Parameters
    const val B_ZONE = "zone"
    const val BV_ZONE_EN = "en" // English locale
    const val BV_ZONE_HI = "hi" // Hindi locale
    const val B_APP_VERSION = "app_version"
    const val BV_APP_VERSION = BuildConfig.VERSION_NAME
    const val B_CLIENT_TYPE = "client_type"
    const val BV_CLIENT_TYPE = "android"
    const val B_DATA = "data"

    // Response Status Codes: 0 = success, others = failure
    const val RESPONSE_SUCCESS = 0

    // Base Response Parameters
    const val BRP_RETURN_CODE = "return_code"
    const val BRP_MSG = "msg"
    const val BRP_RESULT = "result"
    const val E_BODY_NULL = "Response body is null"
    const val E_HTTP = "Http Error:"
    const val E_HTTP_UNKNOW = "Unknown Http Exception:"

    // Response Error Codes
    const val REC_BODY_EMPTY = -1000
    const val REC_HTTP_EXCEPTION = -1001
}